﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TpBaseObjects.Objects;

namespace TpNotiz.Controls {
    public partial class TecNotizOrganisation : UserControl {

        #region Members

        private Organisation organisation;

        #endregion

        #region Constructor

        public TecNotizOrganisation() {
        }

        public TecNotizOrganisation(Organisation myModel) {
            this.organisation = myModel;
            InitializeComponent();
            this.bindingSource1.DataSource = MyModel;
        }

        #endregion

        #region Properties

        public Organisation MyModel {
            get { return this.organisation; }
            set { this.organisation = value; }
        }

        #endregion

    }
}
